<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>小组管理</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
    <link rel="stylesheet" href="../css/select-info.css">
    <script src="../js/jquery.js"></script>
    <script src="../layui/layui.js"></script>
    <script src="../js/myAjax.js"></script>
    <script src="../js/util/batches.js"></script>
    <script src="../js/group/groupList.js"></script>
    <script src="../js/util/jumpadd.js"></script>
</head>
<body>
<div class="select-info">
    <div>用户名：<input type="text" id="name"></div>
    <div>组长：<input type="text" id="leader"></div>
    <div>成立时间：<input type="text" id="startEstablishedTime" style="width: 150px;">~
                  <input type="text" id="endEstablishedTime" style="width: 150px;"></div>
    <span class="submit">
        <input type="button" value="搜索" onclick="searchAll()">
         <input type="button" value="新增" onclick="newAdd('小组新增','/html/groupAdd.html')">
    </span>
</div>
<div style="text-align: center;line-height: 40px;background-color: darkgray;">批量操作：
    <input type="button" value="删除" onclick="deleteBatches('/group/delete')"
           style="border-radius: 5px;width: 80px;background-color: beige"></div>
<table class="table_manage">
    <caption></caption>
    <thead>
    <tr>
        <th><input type="button" value="全选/取消" onclick="checkAll()">ID</th>
        <th>组名</th>
        <th>组长</th>
        <th>成立时间</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody id="findAll">

    </tbody>
</table>
<div id="page">
    分页
</div>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;

        //执行一个laydate实例
        laydate.render({
            elem: '#startEstablishedTime' //指定元素
            ,type: 'datetime'
            ,format: 'yyyy-MM-dd HH:mm'
        });
        laydate.render({
            elem: '#endEstablishedTime' //指定元素
            ,type: 'datetime'
            ,format: 'yyyy-MM-dd HH:mm'
        });
    });
</script>
</body>
</html>